FFMpeg and Gstreamer Examples
FFMpeg and Gstreamer
Table of Content
jpeg#
- Stream jpeg stream over udp using gstreamer
- Play stream using FFPlay and sdp file
Terminal1: gstreamer udp stream
gst-launch-1.0 -v videotestsrc \
! video/x-raw,width=640,height=480 \
! timeoverlay \
! tee name="local" \
! queue \
! videoconvert \
! autovideosink sync=false\
local. \
! queue \
! jpegenc \
! rtpjpegpay \
! udpsink host=127.0.0.1 port= 5000
udp.sdp
m=video 5000 RTP/AVP 26
a=rtpmap:26 JPEG/90000;
c=IN IP4 127.0.0.1
Terminal 2: ffplay
ffplay \
-protocol_whitelist file,rtp,udp \
-fflags nobuffer \
-flags low_delay \
-framedrop \
-i udp.sdp